package com.designpattern.builder;

import java.util.ArrayList;
import java.util.List;

public class Snake {

    private String name;
    private List<String> partList = new ArrayList<String>();

    public void addPart(String part) {
        partList.add(part);
    }

    public void show() {
        for (String s : partList) {
            System.out.println(s);
        }
        System.out.println(name);
    }
}
